home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3443 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: Rezonet.net!news
  2. From: ray@ultimate-tech.com (Ray Dunn)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: (no subject)
  5. Date: 26 Jan 1996 16:55:31 GMT
  6. Organization: Ultimate Technographics Inc.
  7. Message-ID: <4eb123$r0c@ns.RezoNet.NET>
  8. References: <4e71v9$iqb@dingo.cc.uq.oz.au> <3107710C.B26@cmt.lpr.mail.carel.fi>
  9. NNTP-Posting-Host: 204.19.230.7
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In referenced article, Ari Lukumies says...
  15. >coonsta@peg.apc.org wrote:
  16. >> 
  17. >>         x = thepicture.buffer[32000];   // doesn't seem to work.
  18. >
  19. >Try using
  20. >
  21. >        x = (int *)&thepicture.buffer[32000];
  22. >or
  23. >        x = (int *)(thepicture.buffer + 32000);
  24.  
  25. Both of these suggestions attempt to put the address of the array 
  26. element in x, which is an int, not a pointer to an int.
  27.  
  28. The original poster wnated the value of the element, not its address.
  29.  
  30. The problem lay elsewhere.
  31. -- 
  32. Ray Dunn (opinions are my own) | Phone: (514) 938 9050
  33. Montreal                       | Phax : (514) 938 5225
  34. ray@ultimate-tech.com          | Home : (514) 630 3749
  35.  
  36.